package com.yeren.collection.collection;

import java.util.ArrayList;
import java.util.Collection;

/**
 * 从集合中删除元素1
 * @author Administrator
 *
 */
public class CollectionDemo5 {
	public static void main(String[] args) {
		Collection c=new ArrayList();
		c.add("a");
		c.add("b");
		c.add("c");
		
		System.out.println(c);//[a,b,c]
		/*
		 * boolean remove(Object o)
		 * 从集合中删除给定的元素
		 */
		c.remove("b");
		System.out.println(c);//[a,c]
	}
}
